﻿@using mscook.mvc;
@model IEnumerable<mscook.core.domain.ResourceType>

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3>资源</h3>
</div>
<div class="modal-body">
    <fieldset>
        <table class="table table-striped table-bordered bootstrap-datatable datatable">
            <thead>
                <tr>
                    <th>类型名称</th>
                    <th>父类型</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
                @for (int i = 0; i < Model.Count(); i++)
                {
                    var item = Model.ElementAt(i);
                    <tr>
                        <td>@Html.Encode(item.Name)</td>
                        <td>@Html.Encode(item.ParentType.Name)</td>                      
                        <td class='center multi'><a href="#" class="btn btn-success" data-name="@item.Name" data-id="@item.Id"><i class='icon-zoom-in icon-white'></i>Select</a></td>
                    </tr>
                }
            </tbody>
        </table>
    </fieldset>
    @Html.Partial("_ModalMultiPageBreak")
</div>
<div class="modal-footer">
    <a href="#" class="btn btn-primary" data-dismiss="modal">Close</a>
</div>
@Html.Partial("_ModalMultiSelect")